package de.karlNet.sshTray.gui;

import java.awt.MenuItem;

import de.karlNet.sshTray.model.Connection;

public class TrayMenuItem extends MenuItem {
	private Connection connection;
	
	public Connection getConnection() {
		return this.connection;
	}
	
	public TrayMenuItem(Connection connection) {
		this.connection = connection;
		this.setLabel(connection.getTitle());
	}
	
	@Override
	public String getLabel() {
		return this.connection.getTitle();
		
	}
	
	@Override
	public String getName() {
		return this.getName();
	}
}
